#pragma once
#include "afxcmn.h"


// CDlgEditILL dialog

class CDlgEditILL : public CDialog
{
	DECLARE_DYNAMIC(CDlgEditILL)

public:
	CDlgEditILL(CWnd* pParent = NULL);   // standard constructor
	virtual ~CDlgEditILL();

	virtual BOOL OnInitDialog();
	virtual void OnOK();
	virtual void OnCancel();
	afx_msg void OnBnClickedButtonApply();
	afx_msg void OnBnClickedButtonDelete();
	afx_msg void OnDeltaposSpinRecord(NMHDR *pNMHDR, LRESULT *pResult);

// Dialog Data
	enum { IDD = IDD_DIALOG_EDIT_ILL };

protected:
	virtual void DoDataExchange(CDataExchange* pDX);    // DDX/DDV support

	DECLARE_MESSAGE_MAP()

public:
	BOOL UpdateRecord();

	BOOL m_bAdd;
	LONG m_nID;
	LONG m_nOldID;

	CString m_szID;
	CString m_szDescription;
	CString m_szExplanation;
	CString m_szMessageSubject;
	BOOL m_bUserListed;

	CArray<LONG> m_naID;
	INT m_nIndexID;
	CSpinButtonCtrl m_ctrlRecord;
};
